package com.celesea.configuration.security.bean;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

/**
 *
 */
public class PermissionCollection implements Serializable{
    /**
     * 菜单
     **/
    private List<Permission> menus;

    /**
     * 权限编码
     **/
    private Set<String> permissionCode;

    /**
     * 是否开通供应链
     **/
    private boolean openScm;

    public PermissionCollection() {
        super();
    }

    public PermissionCollection(List<Permission> menus, Set<String> permissionCode, boolean openScm) {
        super();
        this.menus = menus;
        this.permissionCode = permissionCode;
        this.openScm = openScm;
    }

    public List<Permission> getMenus() {
        return menus;
    }

    public void setMenus(List<Permission> menus) {
        this.menus = menus;
    }


    public Set<String> getPermissionCode() {
        return permissionCode;
    }

    public void setPermissionCode(Set<String> permissionCode) {
        this.permissionCode = permissionCode;
    }

    public boolean isOpenScm() {
        return openScm;
    }

    public void setOpenScm(boolean openScm) {
        this.openScm = openScm;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("PermissionCollection{");
        sb.append("menus=").append(menus);
        sb.append(", permissionCode=").append(permissionCode);
        sb.append(", openScm=").append(openScm);
        sb.append('}');
        return sb.toString();
    }
}
